 <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
    <h5 id="myModalLabel">Referance No:<?php echo $referance_no; ?></h5>
	</div>
    <div class="modal-body">

<p align="right"><a href="<?php echo site_url('people/purchaser/create_purchaser');?>"></a></p>
<!--<div id="infoMessage"><?php echo $message;?></div>-->

<table class="table table-striped table-bordered" width="100%" id="example">
	<thead>
    <tr>
		<th>Product name</th>
		<th>Quantity</th>
        <th>Rate</th>
        <th>Amount</th>
        <th>tax</th>
        <th>Discount</th>
		<th>Toatal Price</th>	
	</tr>
    </thead>
	<?php foreach ($users as $user):?>
		<tr>
			<td><?php  echo $this->purchase_model->get_product_details($user->id_product); ?></td>
			<td><?php  echo $user->quantity; ?></td>
            <td><?php  echo $user->rate; ?></td>
            <td><?php  echo $user->amount; ?></td>
			<td><?php  echo $user->tax; ?>%</td>
            <td><?php  echo $user->discount; ?>%</td>
			<td><?php  echo $user->total; ?></td>
		</tr>
	<?php endforeach;?>
</table>

<!--<p><a href="<?php echo site_url('auth/create_user');?>">Create a new user</a> | <a href="<?php echo site_url('auth/create_group');?>">Create a new group</a>
<a href="<?php echo site_url('auth/logout');?>">Logout</a>
</p>-->
    </div>
    </div>
